package com.woniuxy.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.entity.dto.DictionaryDTO;
import com.woniuxy.entity.dto.stationPile.StationDetailDTO;
import com.woniuxy.entity.dto.stationPile.StationInfoDTO;
import com.woniuxy.entity.dto.stationPile.StationMapInfoDTO;
import com.woniuxy.entity.po.stationPile.Station;
import com.woniuxy.util.PageParam;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface StationService {
    PageInfo<?> queryAll(PageParam<?> pageParam);

    PageInfo<?> queryInfo(PageParam<StationInfoDTO> pageParam);

    void del(Long id);

    void batchDel(List<Long> ids);

    List<StationMapInfoDTO> queryAllForMap();

    List<DictionaryDTO> queryStationTypeList();

    /**
     * 查询充电站详情，包含图片、充电桩和收费规则
     *
     * @param id 充电站ID
     * @return 详情DTO
     */
    StationDetailDTO queryBasicInfo(Long id);

    void addStation(Station station);

    void updateStation(Station station, List<MultipartFile> newImages, List<String> existingUrls);
}
